<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<!-- RichFaces tag library declaration -->
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<f:loadBundle basename="com.es.resource.messages" var="bundle" />
<html>
	<head>
		<base href="<%=basePath%>">

		<title>salesAgentDashboard</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<body>
		<f:view>

			<a4j:form style="align: center;">

				<h:commandLink value="Log Out"
					action="#{authenticationController.logout}">
				</h:commandLink>


				<rich:panel header="Sales-Agent Dashboard" style="width: 400px">

					<br />
					<h:commandButton value="Create Lead"
						action="#{salesAgentDashboardController.navigateToCreateLeadPage}">
					</h:commandButton>
					<br />
					<br />
					<h:commandButton value="Delete Lead(s)"
						action="#{salesAgentDashboardController.navigateToDeleteDeadLeadPage}">
					</h:commandButton>

					<br />
					<br />
					<h:commandButton value="Import Leads"
						action="#{salesAgentDashboardController.navigateToImportLeadPage}"
						disabled="false">
					</h:commandButton>

					<br />
					<br />
					<h:commandButton value="Manage Lead(s)"
						action="#{salesAgentDashboardController.navigateToViewLeadsPage}">
					</h:commandButton>

					<br />
					<br />
				
					<h:messages showSummary="true"></h:messages>

				</rich:panel>


			</a4j:form>


		</f:view>
	</body>
</html>